# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=brillo
pkgver=1.4.12
pkgrel=1
pkgdesc="Control the brightness of backlight and keyboard LED devices"
options="!check"
url="https://gitlab.com/cameronnemo/brillo"
arch="all"
license="0BSD"
makedepends="go-md2man"
checkdepends="valgrind"
subpackages="$pkgname-doc"
source="https://gitlab.com/cameronnemo/brillo/-/archive/v$pkgver/brillo-v$pkgver.tar.gz"
builddir="$srcdir/brillo-v$pkgver"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" install install.polkit
}

sha512sums="
450e46ac9db70da52f320a9d0683bea15968a7d75c225ace00fcddcd4121af405586d742eca4e7787a5ed7f666ff985bfd46bc353ce1fabcc7f0dbf0c0ec0b3f  brillo-v1.4.12.tar.gz
"
